package com.bsj.sipgateway.web.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.bsj.power.common.config.global.JsonResult;
import com.bsj.sipgateway.web.service.CmdLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 指令收发记录
 * @menu 指令收发记录
 * @Author zhaoyang
 * @Date 2024/11/19 10:39
 */
@Slf4j
@RestController
@RequestMapping("/cmdLog")
@SaIgnore
public class CmdLogController {

    @Autowired
    @Qualifier("cmdLogServiceImpl")
    private CmdLogService cmdLogService;

    /**
     * 查询
     *
     * @param nickName
     * @param beginTime
     * @param endTime
     * @param pageNumber
     * @param pageSize
     * @return
     */
    @GetMapping("/list")
    public JsonResult listCmdLogs(String nickName, String beginTime, String endTime, Integer pageNumber, Integer pageSize) {
        return cmdLogService.listCmdLogs(nickName, beginTime, endTime, pageNumber, pageSize);
    }

}
